<template>
    <div class="breadCrumb">
        <SvgIcon icon-name="location" class="bread-crumb-icon" :size="size"></SvgIcon>
        <el-breadcrumb separator=">">
            <el-breadcrumb-item>{{ props.item.first }}</el-breadcrumb-item>
            <el-breadcrumb-item v-if="props.item.second">{{ props.item.second }}</el-breadcrumb-item>
        </el-breadcrumb>
    </div>
</template>

<script setup lang="ts">
import SvgIcon from './svgIcon.vue'
import { ref } from 'vue'
const props = defineProps(['item'])
const size = ref(24);
</script>

<style lang="scss" scoped>
.breadCrumb {
    height: 30px;
    padding: 0 20px;
    display: flex;
    align-items: center;
}
.bread-crumb-icon{
    margin-right: 4px;
}
:deep(.el-breadcrumb__item) {
    height: 30px;
    line-height: 30px;
    font-size: 14px;
}

:deep(.el-breadcrumb__inner) {
    font-weight: 500px;
}
</style>